package com.book.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDate;

/**
 * <p>
 * 
 * </p>
 *
 * @author fk
 * @since 2023-10-14 11:34:14
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("t_reward")
public class Reward extends RewardRanking implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField("book_id")
    private Long bookId;

    @TableField("date")
    private LocalDate date;

    @TableField("bookcoins")
    private BigDecimal bookcoins;

    @TableField("reader_id")
    private Long readerId;


    public static final String ID = "id";

    public static final String BOOK_ID = "book_id";

    public static final String DATE = "date";

    public static final String BOOKCOINS = "bookcoins";

    public static final String READER_ID = "reader_id";

}
